package com.sun.sentinel.feign;

import org.springframework.stereotype.Component;

/**
 * feign服务熔断降级
 */
@Component
public class HelloFeignClientFallback implements HelloFeignClient {

    /**
     * 配置流控规则：GET:http://nacos-service/hi/{name}
     * 注意规则不是 /hi/{name}
     */
    @Override
    public String sayHi(String name) {
        return "hello error";
    }

}
